package com.yhs.YShop.moudle.order.service.impl;

import java.text.ParseException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.yhs.YShop.common.utils.DateUtils;
import com.yhs.YShop.moudle.order.mapper.OrderMapper;
import com.yhs.YShop.moudle.order.model.BillPayMents;
import com.yhs.YShop.moudle.order.pojo.BillPayDays;
import com.yhs.YShop.moudle.order.service.OrderService;

public class OrderServiceImpl implements OrderService{

	@Autowired
	private OrderMapper orderMapper;
	@Override
	public List<BillPayMents> selectBillPayMentsByDay(Integer days, Integer orderType, Integer orderStatus) {
		//根据订单信息，获取到相关的订单信息
		//先计算天数
		try {
			Long unixTime = DateUtils.formatUnix(DateUtils.dateshit(DateUtils.formatString(), days));
		    List<BillPayDays> billPayDays = orderMapper.selectBillPayMentsByDay(days, orderType, orderStatus);
		
		
		} catch (ParseException e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

	
}
